<#include "../header.ftl" />
<@head title="空间设置" />
		<script type="text/javascript" src="${base}/script/mlog.form.js" charset="utf-8"></script>
		<script type="text/javascript" src="${base}/script/jquery-validation/jquery.validate.js"></script>
		<script type="text/javascript" src="${base}/script/jquery-validation/jquery.metadata.js"></script>
		<script type="text/javascript" src="${base}/script/jquery-validation/validate.method.js"></script>
		<script type="text/javascript">
			$(document).ready(function(){
				mlog.form.validate({
					selector : "#spaceInfoForm",
					errorLabelContainer : "#error",
					wrapper: 'li',
					onfocusout : false,
					onkeyup : false,
					onclick : false
				});
			});
		</script>
		<@side.sidenav active="空间设置"/>
	    <div class="g-content">
	        <div class="g-content-container">
	            <div class="g-p">
					<div class="m-crumb">
					    <ul class="f-cb">
					        <li><i>&gt;</i><a href="${spaceUrl}/admin">博客管理</a></li>
					        <li><i>&gt;</i><a href="javascript:void(0);">空间设置</a></li>
					    </ul>
					</div>
					<div class="page-title">
						<h1>空间设置</h1>
					</div>
					<div class="m-content">
						<div id="error" class="message error" style="display:none;"></div>
						<form name="spaceInfoForm" id="spaceInfoForm" action="${spaceUrl}/admin/space/info/do" method="POST">
							<@spring.bind "spaceInfo" />
							<@spring.formHiddenInput path="spaceInfo.id" />
							<@spring.formHiddenInput path="spaceInfo.user" />
							<div class="label">
								<span class="title">空间标题：</span>
								<@spring.formInput path="spaceInfo.title" attributes='validate=\'{required:true,maxlength:15, messages:{required:"请输入空间标题", maxlength:"空间标题字数不能超过{0}"}}\' placeholder="请输入空间标题" class="input input-large" style="width:60%;" ' />
							</div>
							<div class="label">
								<span class="title">空间简介：</span>
								<@spring.formTextarea path="spaceInfo.intro" attributes='validate=\'{maxlength:300, messages:{maxlength:"空间简介不能超过{0}个字"}}\' placeholder="空间简介" class="input input-large" style="width:60%;height:80px;"'/>
							</div>
							<div class="label">
								<input type="submit" class="button" value="提交" style="margin-left:46px;"/>
							</div>
						</form>
					</div>
	            </div>
	        </div>
	    </div>
<#include "../footer.ftl" />